package com.itshare.video.pojo.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.itshare.video.common.core.validator.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.Null;

/**
 * @Author lyr
 * @create 2020/10/24 19:31
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserInfoDTO {
    /**
     * 用户头像
     */
    private String avatar;


    /**
     * 用户介绍
     */
    private String userIntroduce;


    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 用户名字
     */
    private String userName;


    /**
     * 邮箱
     */
    @Null(message = "无效的字段 at[email]",groups = {UpdateGroup.class})
    private String email;

    @Null(message = "无效的字段 at[role]",groups = {UpdateGroup.class})
    private Integer role;















}
